Skip to content

Conversation

@wyattscarpenter
Copy link
Contributor

process_error_codes was confusing to read due to the lack of distinction it made between error codes (ErrorCode) and error code names (str). This refactor fixes this, and also makes the documentation comment at the topic of the function a real comment.

The current CI ensures this does not introduce errors.

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit clearer now, thanks!

@JukkaL JukkaL merged commit 639fcde into python:master Jan 21, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants